package milktea.service;

import milktea.dao.CARTDao;
import milktea.dao.PRODUCTDao;
import milktea.entity.CART;
import milktea.entity.ORDER;

import java.util.ArrayList;

public class CARTService {
    public static int insert(CART cart) {
        return CARTDao.insert(cart);
    }

    public static CART getCartShop(String uid, String pid) {
        return CARTDao.getCartShop(uid, pid);
    }

    public static ArrayList<CART> getCart(String id) {
        return CARTDao.getCart(id);
    }

    public static int updatenum(int esid, int count) {
        return CARTDao.updatenum(esid, count);
    }

    public static int getDeleteDD(int id) {
        return CARTDao.getDeleteDD(id);
    }

    public static CART getCartShop(String id) {
        return CARTDao.getCartShop(id);
    }

    public static int updateValid(String id){return CARTDao.updateValid(id);}
    public static ArrayList<CART> GoodsByID(String id){
        return CARTDao.GoodsByID(id);
    }
}
